package com.csdj.common.utils;

import java.util.Random;
import java.util.UUID;

public class RandomUtil {

    /**
     * 生成一个token用于登录校验
     * @return
     */
    public static String genToken(){
        return UUID.randomUUID().toString().replaceAll("-","");
    }


    public static int genRandom(){
        final Random random = new Random();
        return random.nextInt(9000)+1000;
    }

}
